/*

 AdWhirlAdapterTapad.h
 
 Copyright 2011 Tapad, Inc.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 
*/

#import "AdWhirlAdNetworkAdapter.h"
#import "TapadBannerView.h"
#import "TapadBannerViewDelegate.h"

// In order to participate in the AdWhirl network, each specific network,
// in this case Tapad's, must subclass the AdWhirl base class for all network
// adapters. It is common practice for this network adapter class to also adopt
// the delegate protocol from the network's sdk, in order to be notified of 
// important events during the lifecycle of the ad view. It then turns around 
// and notifies the AdWhirl SDK of events that it needs to know about. This is
// why it's an "adapter", it creates the connection between network-specific 
// interactions and generic AdWhirl interactions. 
@interface AdWhirlAdapterTapad : AdWhirlAdNetworkAdapter<TapadBannerViewDelegate> {
    TapadBannerView* bannerView;
}

@property (nonatomic, retain) TapadBannerView* bannerView;

+ (AdWhirlAdNetworkType)networkType; // returns required enum from AdWhirl
- (NSObject *)delegateValueForSelector:(SEL)selector;
@end
